//显示大图片
function show_img(t) {
    var img = $(t).find("img");
    var src = $(img).attr('src');
    //页面层
    layer.open({
        title: src.substring(src.lastIndexOf("/") + 1),
        type: 1,
        skin: false, //加上边框
        area: ['80%', '80%'], //宽高
        shadeClose: true, //开启遮罩关闭
        end: function (index, layero) {
            return false;
        },
        content: '<div style="text-align:center"><img src="' + src + '" /></div>'
    });
}
function like(str,el) {
    return str.replace(new RegExp("("+$(el).val()+")",'g'),"<span class='like'>" + $(el).val()+"</span>");
}